﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TCKQKL.Service.LookupClient;
using TCKQKL.FrontEnd.DataModel;

namespace TCKQKL.FrontEnd.Web
{
    public partial class TransLog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LSClient client = new LSClient();
            decimal investorID = client.getAccountData(HttpContext.Current.User.Identity.Name).investorId;
            InvestorDataProfileUI investor = client.getAccountProfileData(investorID);
            client.Close();

            if (investor != null)
            {
                if (Page.Master != null)
                {
                    Label fullName = (Label)Page.Master.FindControl("lblFullName");
                    Label accountNo = (Label)Page.Master.FindControl("lblAccountNo");
                    Label phone = (Label)Page.Master.FindControl("lblPhone");
                    Label address = (Label)Page.Master.FindControl("lblAddress");
                    fullName.Text = investor.name;
                    accountNo.Text = investor.accountNo;
                    address.Text = investor.address;
                    phone.Text = investor.phone;
                }
            }

        }
    }
}
